﻿<table border="0" cellpadding="0" cellspacing="0" style="margin:0px;padding:0px;width:533px">
    <tr>
        <th rowspan="4" width="50px" style="padding: 0px 2px 0px 2px;vertical-align: top;">
            <a href='@Url.Action("ProfileView", "Profile", new { id = ViewBag.YourId })' class="nobtn">
                <img src= "@ViewBag.YourProfilePicturePath" alt="Profile picture" title="Profile picture" style="width: 50px;height: 50px;" />
            </a>
        </th>
        <td style="padding: 0px 2px 0px 2px;color:#222">
            <a href='@Url.Action("ProfileView", "Profile", new { id = ViewBag.YourId })' class="nobtn">
                @ViewBag.YourFullname
            </a>
            was tagged in 
            <a href='@Url.Action("ProfileView", "Profile", new { id = ViewBag.FriendId })' class="nobtn">
                @ViewBag.FriendFullname
            </a>
            's
            <a href='@Url.Action("AlbumDetails", "Album", new { id = ViewBag.AlbumId })' class="nobtn">
                album
            </a>
        </td>
    </tr> 
    <tr>
        <td style="padding: 0px 2px 0px 2px;word-break:break-all" class="nobtn";>
            @foreach (XPressify.Models.UploadedFileSelect file in ViewBag.Files)
            {
                if (file.MediaType == XPressify.Data.Helpers.AlbumMediaType.Photo)
                {
                    <img src="@file.Path" alt="@file.Name" title="@file.Name" style="width:150px;height:120px;" />
                    <text>      </text>
                }
                else if (file.MediaType == XPressify.Data.Helpers.AlbumMediaType.Video)
                {
                    <text>|</text>
                    <a class="nobtn"@*"media{width:480,height:280}"*@ href="@file.Path">@file.Name . @file.FileExtension</a>
                    <text>|</text>
                }
                else if (file.MediaType == XPressify.Data.Helpers.AlbumMediaType.Audio)
                {
                    <text>|</text>
                    <a href="@file.Path" class="nobtn">@file.Name . @file.FileExtension</a>
                    <text>|</text>
                }
                else if (file.MediaType == XPressify.Data.Helpers.AlbumMediaType.Document)
                {
                    <text>|</text>
                    <a href="@file.Path" class="nobtn">@file.Name . @file.FileExtension</a>
                    <text>|</text>
                }
            }
        </td>
    </tr>
    <tr>
        <td style="padding: 0px 2px 0px 2px;color:Gray">
            @ViewBag.Created.ToString("dd MMMM, yyyy a't' HH:mm")
        </td>
    </tr>
</table>